//
//  ProfileTableViewController.swift
//  MicroBlog
//
//  Created by Apple on 16/9/19.
//  Copyright © 2016年 Apple. All rights reserved.
//

import UIKit

class ProfileTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if isLogin {
            addNaviRightButton()
        } else {
            visitorView?.updataVisitorViewInfo(message: "登录后,你的微博,个人资料,用户信息,会在这里展示给别人", imageName: "visitordiscover_image_profile")
        }
    }
    
    private func addNaviRightButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem.init(title: "push", imageName: nil, target: self, action: #selector(pushClick))
    }
    
    //点击事件
    func pushClick() {
        let vc = TestViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}
